package com.ding.dailyup.entity.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "收藏股票列表返回值")
public class ListCollectStockResp {
    @ApiModelProperty(value = "")
    private Long id;
    @ApiModelProperty(value = "")
    private String stockCode;
    @ApiModelProperty(value = "")
    private String stockName;
    @ApiModelProperty(value = "收藏价格")
    private String collectPrice;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "最新价格")
    private String latest;
    @ApiModelProperty(value = "收藏时间")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;
}
